jQuery(function($){
    
        //  导航条
       var mySwiper = new Swiper('.box', {
           slidesPerView: 0.5,
           pagination: '.swiper-pagination',
           paginationClickable: true,

       });

       var swiper = new Swiper('.content>.swiper-container', {
           pagination: '.swiper-pagination',
           paginationClickable: true,
           onInit: function (swiper) { //动画
               swiperAnimate(swiper);
           },

           onTransitionEnd: function (swiper) {
               $('.navs').eq(swiper.activeIndex) //跟着下标滑动
                   .addClass('active')
                   .siblings()
                   .removeClass('active');
           }
       });
           //下标
       $('.navs').click(function () {
           $(this).addClass('active')
               .siblings()
               .removeClass('active');
           swiper.slideTo($(this).index(), 1000)
       });
            // 获取
       $.ajax({
           type: "GET",
           url: "json/qingqiu.json",
           async: true,
           success: function (res) {
               var str = template('temp', {
                   nff: res
               });
               $('.list').html(str);
           }
       })
  
}); 
